package com.fuhao.mybatieplus.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lqh
 * @since 2019-03-18
 */
@TableName("jpa_customer")
public class JpaCustomer extends Model<JpaCustomer> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private Date birth;
	private Date createTime;
	private String email;
	private String name;


	public Integer getId() {
		return id;
	}

	public JpaCustomer setId(Integer id) {
		this.id = id;
		return this;
	}

	public Date getBirth() {
		return birth;
	}

	public JpaCustomer setBirth(Date birth) {
		this.birth = birth;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public JpaCustomer setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public String getEmail() {
		return email;
	}

	public JpaCustomer setEmail(String email) {
		this.email = email;
		return this;
	}

	public String getName() {
		return name;
	}

	public JpaCustomer setName(String name) {
		this.name = name;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
